/**
 * 
 */
package com.curso.sesion10;

import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;


public class FileCharCopier {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws IOException {
		File inputFile = new File("E:\\peter\\CursoJava\\sites.txt");
		File outputFile = new File("E:\\peter\\CursoJava\\sitesCopy.txt");
		FileReader in = new FileReader(inputFile);
		FileWriter out = new FileWriter(outputFile);
		
		int c;
		while ((c = in.read()) != -1) {
			out.write(c);
		}
		
		in.close();
		out.flush();
		out.close();
		
	}

}
